package com.eastfair.gateway.api;

import com.eastfair.core.base.R;
import com.eastfair.gateway.dto.BackListDTO;
import com.eastfair.gateway.entity.BackList;
import com.eastfair.gateway.hystrix.BackListApiFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * auth feign接口
 *
 * @Author ligang
 * @Date 2021/7/16 16:41
 */
@FeignClient(name = "ef-gateway", fallback = BackListApiFallback.class)
public interface BackListServiceFeign {

    /**
     * 添加黑名单
     * @param backListDTO 实体
     * @return
     */
    @PostMapping("/backList/executeAddBackList")
    R<BackList> executeAddBackList(@RequestBody BackListDTO backListDTO);


    /**
     * 查询黑名单
     * @param backListDTO 实体
     * @return
     */
    @PostMapping("/backList/verifyUserBackList")
    R<Boolean> verifyUserBackList(@RequestBody BackListDTO backListDTO);


}
